
union3.o:     file format elf64-littleaarch64


Disassembly of section .text:

0000000000000000 <main>:
当改变一个联合成员的值时，实际上修改了该联合所有成员的值。

 */

void main()
{
   0:	d11943ff 	sub	sp, sp, #0x650
   4:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
   8:	910003fd 	mov	x29, sp
    union u_data var, mydata[100];

    printf("sizeof = %ld = %ld\n", sizeof(var), sizeof(mydata)); // 16, 1600
   c:	90000000 	adrp	x0, 0 <main>
  10:	91000000 	add	x0, x0, #0x0
  14:	d280c802 	mov	x2, #0x640                 	// #1600
  18:	d2800201 	mov	x1, #0x10                  	// #16
  1c:	94000000 	bl	0 <printf>
}
  20:	d503201f 	nop
  24:	a8c17bfd 	ldp	x29, x30, [sp], #16
  28:	911943ff 	add	sp, sp, #0x650
  2c:	d65f03c0 	ret
